{% extends "base.html" %}

{% block title %}学员新增页{% endblock %}

{% block content %}
    <div>
        <form action="/stu/add" method="post">
            <label for="sid">学号</label>
            <input type="text" name="sid" id="sid" >
            <br />
            <label for="name">姓名</label>
            <input type="text" name="name" id="name"  >
            <br />
            <label for="gender">性别</label>
            <input type="text" name="gender" id="gender" >
            <br />
            <label for="age">年龄</label>
            <input type="text" name="age" id="age"  >
            <br />
            <label for="s_class">班级</label>
            <input type="text" name="s_class" id="s_class"  >
            <br />
            <label for="email">邮箱</label>
            <input type="text" name="email" id="email"  >
            <br />
            <label for="dress">地址</label>
            <input type="text" name="dress" id="dress" >
            <br />

            <input type="submit" value="提交">
            <a href="/stu/list">返回</a>
            <input type="reset" value="重置">
        </form>
        {% if error %}
            <p style="color:red;"> {{ error }}</p>
        {% endif %}
    </div>

{% endblock %}